/* 主内容区域 */
.site-layout {
  margin-left: 200px; /* 侧边栏宽度 */
  transition: all 0.2s;
  min-height: 100vh;
  background: #f0f2f5;
}

/* 侧边栏收起时的样式 */
.ant-layout-sider-collapsed + .site-layout {
  margin-left: 80px;
}

/* 内容区域 */
.site-layout .ant-layout-content {
  margin: 0;
  padding: 16px;
  min-height: calc(100vh - 64px);
  overflow: auto;
  background: #f0f2f5;
}

.version-detail-container {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* 页面标题 */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.page-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

/* 信息卡片 */
.info-card {
  margin-bottom: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.info-card .ant-card-body {
  padding: 16px 24px;
}

.info-item {
  display: flex;
  align-items: center;
  height: 32px;
  line-height: 32px;
}

.info-label {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 500;
  min-width: 60px;
}

.info-value {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 部分容器 */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 部分卡片 */
.section-card {
  margin-bottom: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.section-card:last-child {
  margin-bottom: 0;
}

/* 部分头部 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

/* 卡片内容 */
.section-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  min-height: 48px;
  padding: 0 16px;
}

.section-card .ant-card-body {
  padding: 16px;
}

/* 表格样式 */
.ant-table {
  font-size: 13px;
}

.ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.ant-table-tbody > tr > td {
  border-bottom: 1px solid #f0f0f0;
}

/* 状态标签 */
.ant-tag {
  border-radius: 10px;
  padding: 0 8px;
  font-size: 12px;
}

/* 适配移动端 */
@media (max-width: 768px) {
  .site-layout {
    margin-left: 0;
  }
  
  .ant-layout-sider-collapsed + .site-layout {
    margin-left: 0;
  }
  
  .filter-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-item label {
    margin-bottom: 8px;
    text-align: left;
  }
  
  .ant-col {
    margin-bottom: 16px;
  }
  
  .ant-col:last-child {
    margin-bottom: 0;
  }
}

.version-detail-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 64px);
}

.version-detail-container .ant-card {
  margin-bottom: 24px;
}

.yaml-container {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  margin-top: 16px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  max-height: 600px;
  overflow-y: auto;
}

.events-container {
  padding: 16px 0;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.status-inactive {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.status-pending {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}
